import request from '@/utils/request'

// 查询考勤绩效列表
export function listPersonCheck(query) {
  return request({
    url: '/business/personCheck/list',
    method: 'get',
    params: query
  })
}

// 查询考勤绩效详细
export function getPersonCheck(id) {
  return request({
    url: '/business/personCheck/' + id,
    method: 'get'
  })
}

// 新增考勤绩效
export function addPersonCheck(data) {
  return request({
    url: '/business/personCheck',
    method: 'post',
    data: data
  })
}

// 修改考勤绩效
export function updatePersonCheck(data) {
  return request({
    url: '/business/personCheck',
    method: 'put',
    data: data
  })
}

// 删除考勤绩效
export function delPersonCheck(id) {
  return request({
    url: '/business/personCheck/' + id,
    method: 'delete'
  })
}
